package net.huashitong.ssydt.exam.entity.vo;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.09.12
 */
public class BaseRecord implements Serializable {

    private static final long serialVersionUID = -5092718459757761987L;

    @ApiModelProperty(value = "记录id")
    private Long recordId;//记录id
    @ApiModelProperty(value = "练习状态")
    private String testState;//练习状态
    @ApiModelProperty(value = "题目数")
    private Integer questionNumber;//题目数
    @ApiModelProperty(value = "完成数")
    private Integer finishNumber;//完成数
    @ApiModelProperty(value = "正确数")
    private Integer correctNumber;//正确数
    @ApiModelProperty(value = "难度系数")
    private BigDecimal coefficient;//难度系数
    @ApiModelProperty(value = "平均正确率")
    private BigDecimal correctAvgRate;//平均正确率
    @ApiModelProperty(value = "作答时间")
    private Integer userTime;//作答时间
    @ApiModelProperty(value = "击败率（人数）")
    private BigDecimal beatRate;//击败率（人数）
    @ApiModelProperty(value = "正确率")
    private BigDecimal correctRate;//正确率

    public BaseRecord() {
    }

    public BaseRecord(BaseRecord record) {
        this.coefficient = record.getCoefficient();
        this.questionNumber = record.getQuestionNumber();
        this.recordId = record.getRecordId();
        this.testState = record.getTestState();
        this.finishNumber = record.getFinishNumber();
        this.correctNumber = record.getCorrectNumber();
        this.correctAvgRate = record.getCorrectAvgRate();
        this.beatRate = record.getBeatRate();
        this.userTime = record.getUserTime();
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public String getTestState() {
        return testState;
    }

    public void setTestState(String testState) {
        this.testState = testState;
    }

    public Integer getQuestionNumber() {
        return questionNumber;
    }

    public void setQuestionNumber(Integer questionNumber) {
        this.questionNumber = questionNumber;
    }

    public Integer getFinishNumber() {
        return finishNumber;
    }

    public void setFinishNumber(Integer finishNumber) {
        this.finishNumber = finishNumber;
    }

    public Integer getCorrectNumber() {
        return correctNumber;
    }

    public void setCorrectNumber(Integer correctNumber) {
        this.correctNumber = correctNumber;
    }

    public BigDecimal getCoefficient() {
        return coefficient;
    }

    public void setCoefficient(BigDecimal coefficient) {
        this.coefficient = coefficient;
    }

    public BigDecimal getCorrectAvgRate() {
        return correctAvgRate;
    }

    public void setCorrectAvgRate(BigDecimal correctAvgRate) {
        this.correctAvgRate = correctAvgRate;
    }

    public Integer getUserTime() {
        return userTime;
    }

    public void setUserTime(Integer userTime) {
        this.userTime = userTime;
    }

    public BigDecimal getBeatRate() {
        return beatRate;
    }

    public void setBeatRate(BigDecimal beatRate) {
        this.beatRate = beatRate;
    }

    public BigDecimal getCorrectRate() {
        return correctRate;
    }

    public void setCorrectRate(BigDecimal correctRate) {
        this.correctRate = correctRate;
    }
}
